import json

from config import BASE_DIR


def read_json_data(filename_path):
    # with open("../data/ihrm_login.json", "r", encoding="utf-8")as f:
    with open(filename_path,"r",encoding="utf-8")as f:
        json_data = json.load(f)
        list1 = []
    for item in json_data:
        t = tuple(item.values())
        list1.append(t)
    return list1